<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Http\Models\Page;

class PageController extends AdminBaseController {
    public function __construct(Request $request){
        parent::__construct($request);
        $this->param['active'] = 'page';
    }

    public function index(){
        $pages = Page::orderBy('id','desc')->paginate(20);
        $this->param['data'] = $pages;
        return view('admin.page.index',$this->param);
    }
}
